package com.jy.adscm.dealer.service;

import com.jy.adscm.dealer.bean.Dealer;
import com.baomidou.mybatisplus.service.IService;
import com.jy.adscm.exception.AdscmSystemException;
import com.jy.adscm.security.utils.Token;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zyl
 * @since 2019-01-16
 */
public interface DealerService extends IService<Dealer> {

    boolean insertDealer(Dealer dealer,Token token)throws AdscmSystemException;

    boolean deleteDealer(Integer id, Token token)throws AdscmSystemException;

    Boolean updateDealer(Dealer dealer, Token token)throws AdscmSystemException;

    List<Dealer> selectAll()throws AdscmSystemException;

    List<Dealer> selectDealerInfo();
}
